Perfect Supercompilation Master’s Thesis

نویسنده

  • JENS PETER SECHER
چکیده

up By the induction hypothesis P fulfil the requirements. Let be a node in P’s frontier that such that P( ) = ht;Ri is non-trivial, and let P( ) = ht 0;R 0i be a non-trivial ancestor such that t 0 t. Let t 0 u t = (s; fx1:=s1; : : : ; xn :=sng; ). Since t 0 6$ t, s is not a variable. Also, since t 0 6 lt, then sfx1:= s1; : : : ; xn := sng 6 : = s. Hence the abstract operation is welldefined and results in that the subtree at is replaces by a let-term and the restriction set R 0. Since is now placed in the frontier, Q fulfil the requirements. 2 We will now see show that our supercompiler indeed terminates on one of the canonical examples. Example 87 (Accumulating Parameter Terminates) data List(a) = CONS(a; List(a)) j NIL reverse(xs) = rev(xs; NIL) rev(NIL; ys) = ys rev(CONS(x; xs); ys) = rev(xs; CONS(x; ys)) Supercompiling the term reverse(vs)will proceed as follows. Let nodes in the frontier be marked by double nodes and locally unfolded nodes be indicated as dashed nodes. Before the first generalisation occurs, the process will look like this: _ _ _ _ _ M M _ _ _ _ _ reverse(vs) G F E D @ A B C rev(vs; NIL) vs=[ ] yy vs=u:us G F E D @ A B C NIL G F E D @ A B C ? > = < 8 9 : ; rev(us; CONS(u; NIL)) us=[ ] xx us=u 0:us 0 G F E D @ A B C CONS(u; NIL) G F E D @ A B C rev(us 0; CONS(u 0; CONS(u; NIL))) When the frontier to the right is selected, it is discovered that it embeds the parent. Since it is not an instance of the parent and they share common structure, an upwards abstraction is made. _ _ _ _ _ M M _ _ _ _ _ reverse(vs) G F E D @ A B C ? > = < 8 9 : ; let ys=NIL in rev(vs; ys)

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On Perfect Supercompilation

We extend positive supercompilation to handle negative as well as positive information. This is done by instrumenting the underlying unfold rules with a small rewrite system that handles constraints on terms, thereby ensuring perfect information propagation. We illustrate this by transforming a näıvely specialised string matcher into an optimal one. The presented algorithm is guaranteed to term...

متن کامل

Construction of a Fault - Tolerant Wireless Communication Topology for Networked Embedded Systems oder “ Implementing the Thallner - Algorithm ”

This master’s thesis presents a proven-correct implementation of a distributed topology construction algorithm based upon the Thallner topology construction method for creating a minimal ∆-node connected fault-tolerant overlay graph. The algorithm works in asynchronous fault-tolerant distributed systems augmented with failure detectors. A detailed proof shows that given a perfect propose module...

متن کامل

Master’s Thesis Research Proposal

This is a proposal for the research I wish to do for my Master’s thesis. It is an attempt to categorize what I know, what I don’t know, what I need to do, and where I need help. It also consists of my attempt to completely survey the literature.

متن کامل

Microwavave Tomography for Breast Cancer Detection Master’s thesis in Master’s of Biomedical Engineering

...................................................................................................................vii Acknowledgement ................................................................................................. viii

متن کامل

Master’s Thesis Writing: Cinderella of Iranian ELT Education

For the vast majority of the Iranian M.A. students of TEFL, thesis writing is the first individual engagement with research. Despite having some pedagogical merits, such an academic activity generally poses some intellectual and affective challenges to such students. During thesis completion, if students are not effectively scaffolded by supervisors and not supported by universities, they are l...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1999